package cn.good.yan.basics.t1.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Bill 实体
 *
 * @author shengren.yan
 * @create 2022-04-06
 */
@ToString
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Bill implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long bid;
    private String billCode;
    private String billName;
    private String billCom;
    private Integer billNum;
    private BigDecimal money;
    // 是否付款 0 未付款， 1已付款
    private Integer pay;
    private Long pid;
    private Date createDate;

}

//    CREATE TABLE `bill` (
//        `bid` bigint(10) NOT NULL AUTO_INCREMENT,
//        `bill_code` varchar(25) DEFAULT NULL,
//        `bill_name` varchar(25) DEFAULT NULL,
//        `bill_com` varchar(25) DEFAULT NULL,
//        `bill_num` int(8) DEFAULT NULL,
//        `money` double(8,2) DEFAULT NULL,
//        `pay` int(2) DEFAULT NULL COMMENT '是否付款 0 未付款， 1已付款',
//        `pid` int(10) DEFAULT NULL COMMENT '供应商id',
//        `create_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
//        `version` int(10) DEFAULT NULL COMMENT '乐观版本号',
//        PRIMARY KEY (`bid`),
//        KEY `pid` (`pid`),
//        CONSTRAINT `pid` FOREIGN KEY (`pid`) REFERENCES `content` (`id`)
//        ) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8;